package com.lyf.scm.common.enums;

/**
 * 大数据线程池配置枚举
 *
 * @author wangchlei
 * @date 2020/09/21
 */
public enum BigDataThreadPoolConfEnum {
    /**
     * 核心线程数
     */
    CORE_POOL_SIZE("CORE_POOL_SIZE", 2, "核心线程数"),
    /**
     * 最大线程数
     */
    MAXIMUM_POOL_SIZE("MAXIMUM_POOL_SIZE", 2, "最大线程数"),
    /**
     * 空闲失效时长(秒)
     */
    KEEP_ALIVE_TIME("KEEP_ALIVE_TIME", 2, "空闲失效时长");


    /**
     * 参数名称
     */
    private String paramName;
    /**
     * 配置值
     */
    private Integer value;
    /**
     * 描述
     */
    private String desc;

    BigDataThreadPoolConfEnum(String paramName, Integer value, String desc) {
        this.paramName = paramName;
        this.value = value;
        this.desc = desc;
    }

    public String getParamName() {
        return paramName;
    }

    public void setParamName(String paramName) {
        this.paramName = paramName;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
